package xusage.cumulus.spring.context;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.support.ResourcePatternResolver;

import xusage.cumulus.spring.resolver.CumulusResourcePatternResolver;

public class CumulusXmlApplicationContext extends ClassPathXmlApplicationContext {

	public CumulusXmlApplicationContext() {
		super();
	}

	public CumulusXmlApplicationContext(ApplicationContext parent) {
		super(parent);
	}

	public CumulusXmlApplicationContext(String path, Class<?> clazz) throws BeansException {
		super(path, clazz);
	}

	public CumulusXmlApplicationContext(String... configLocations) throws BeansException {
		super(configLocations);
	}

	public CumulusXmlApplicationContext(String configLocation) throws BeansException {
		super(configLocation);
	}

	public CumulusXmlApplicationContext(String[] configLocations, ApplicationContext parent) throws BeansException {
		super(configLocations, parent);
	}

	public CumulusXmlApplicationContext(String[] configLocations, boolean refresh, ApplicationContext parent) throws BeansException {
		super(configLocations, refresh, parent);
	}

	public CumulusXmlApplicationContext(String[] configLocations, boolean refresh) throws BeansException {
		super(configLocations, refresh);
	}

	public CumulusXmlApplicationContext(String[] paths, Class<?> clazz, ApplicationContext parent) throws BeansException {
		super(paths, clazz, parent);
	}

	public CumulusXmlApplicationContext(String[] paths, Class<?> clazz) throws BeansException {
		super(paths, clazz);
	}

	public ResourcePatternResolver getResourcePatternResolver() {
		return new CumulusResourcePatternResolver(this);
	}
	
}
